package com.briup.estore.config;

import com.briup.estore.listener.ApplicationListener;
import com.briup.estore.listener.SessionListener;
import org.springframework.boot.web.servlet.WebListenerRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @author adam
 * @date 2023/3/31
 */
@Configuration
public class WebMvcConfiguration {


    @Bean
    public SessionListener getSessionListener() {
        return new SessionListener();
    }

    @Bean
    public ApplicationListener getApplicationListener() {
        return new ApplicationListener();
    }


}
